<template>
  <div class="max">
    <div v-for="(item, index) in list" :key="index" class="geDan">
      <div class="imgs">
        <img :src="item.imgurl16v9">
      </div>
      <div class="introduce">
        <div class="name_top">{{ item.name }}</div>
        <div class="name_button">{{ item.publishTime }}</div>
      </div>
    </div>
  </div>
</template>

<script>
import { singerMV } from '@/api/singer'
export default {
  data() {
    return {
      list: [],
      id: '861777'
    }
  },
  created() {
    this.singerMV()
  },
  methods: {
    async singerMV() {
      const { data } = await singerMV(this.id)
      console.log(data)
      this.list = data.mvs
    }
  }
}
</script>

<style scoped lang="less">
.max {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 25px;
  .geDan {
    width: 20%;
    height: 103px;
    margin-bottom: 70px;
    .imgs {
    // width: 150px;
      height: 103px;
      width: 184px;
      transition: all 0.1s;
      position: relative;
    // height: 150px;
      border-radius: 10px;
      overflow: hidden;
      cursor: pointer;
      img {
        width: 186px;
        height: 103px;
      }
    }
    .imgs:hover {
    //   width: 150px;
      box-shadow: 2px 12px 13px #887f7f82;
    }
    .imgs:hover i {
      display: block;
    }
    .introduce {
      display: flex;
      flex-direction: column;
      margin-top: 10px;
      .name_top {
        // width: 150px;
        word-break: break-all;
        font-weight: 600;
        font-size: 16px;
        color: #000;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }
      .name_top:hover {
        text-decoration: underline;
        cursor: pointer;
      }
      .name_button {
        // width: 150px;
        font-size: 12px;
        word-break: break-word;
      }
    }
  }
}
</style>
